import { createDomElement } from '../../Dom';
import { createReactInstance } from '../createReactInstance';

const createStateNode = fiber => {
  if (fiber.tag === 'host_component') {
    return createDomElement(fiber);
  }
  else {
    return createReactInstance(fiber);
  }
}

export default createStateNode;